<Select Mode="multiple"
        Style="width: 100%"
        Placeholder="Please select"
        DefaultValue="@_defaultValues"
        @bind-Value="@_value"
        OnChange="OnChange">
    @foreach (var item in _items)
    {
        <SelectOption Value="@item">@item</SelectOption>
    }
</Select>
<label>Selected Values: @_value</label>

@using OneOf;
@code
{
    private string _value;
    private string[] _items;
    private string[] _defaultValues;

    protected override void OnInitialized()
    {
        const int min = 10;
        const int max = 36;
        _defaultValues = new[] { "0a10", "0c12" };

        _items = new string[max - min];
        for (var i = min; max > i; i++)
        {
            _items[i - min] = Convert.ToString(i, 16).PadLeft(2, '0') + i.ToString();
        }
    }

    private void OnChange(OneOf<string, IEnumerable<string>, LabeledValue, IEnumerable<LabeledValue>> value, OneOf<SelectOption, IEnumerable<SelectOption>> option)
    {
        Console.WriteLine($"selected: ${value}");
    }
}
